package com.dfbz.demo01_卖票案例;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_Thread_Runnable区别 {
    public static void main(String[] args) {

        MyThread m1=new MyThread();
        m1.start();

        MyThread m2=new MyThread();
        m2.start();

        MyRunnable myRunnable=new MyRunnable();
        Thread t1 = new Thread(myRunnable);
        Thread t2 = new Thread(myRunnable);
        t1.start();
        t2.start();

    }
}
